package com.novax.ex.activity.provider.api;

import com.novax.ex.activity.provider.common.ServerName;
import com.novax.ex.common.results.ReturnResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Description: 国际化接口
 *
 * @author shaw
 * @date 12/5/22 17:16
 */

@FeignClient(url = "${remote.basics-service.endpoint}", name = "InternationalApi", contextId = "InternationalApi")
public interface InternationalApi {

    /**
     * Description: 获取文案
     *
     * @param code 文案编码
     * @param lan 语言
     * @return com.novax.ex.common.results.ReturnResult<java.lang.String>
     * @author shaw
     * @date 12/5/22 5:18 PM
     */
    @GetMapping(value = "/international/get")
    ReturnResult<String> getInternational(@RequestParam("code") String code, @RequestParam("lan") String lan);
}